home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PD Collection CD 1
/
PD Collection CD 1.iso
/
textual
/
pdftops
/
goo
/
c++
/
gmempp
next >
Wrap
Text File
|
1996-06-08
|
440b
|
24 lines
//========================================================================
//
// gmempp.cc
//
// Use gmalloc/gfree for C++ new/delete operators.
//
// Copyright 1996 Derek B. Noonburg
//
//========================================================================
#include "gmem.h"
#ifdef DEBUG_MEM
void *operator new(long size) {
return gmalloc((int)size);
}
#endif
#ifdef DEBUG_MEM
void operator delete(void *p) {
gfree(p);
}
#endif